package hongcaosp.app.android.modle.bean;

import com.alibaba.fastjson.annotation.JSONField;

public class UserInfo implements IUserDetail {
//    id": 3, //用户id
//            "userCode": "8606934135", //抖音号
//            "userComment": null, //个性签名
//            "birthday": null, //生日
//            "sex": 0, //性别0未知，1男2女
//            "locality": null,//地区
//            "status": 0,//00正常，1封禁
//            "type": 0,
//            "mobile": "13477065239", //手机号码
//            "image": null, //头像
//            "nickname": null,//昵称
//            "fansCounts": 0,//粉丝数量
//            "followCounts": 0,//关注数量
//            "likeCounts": 0,//喜欢数量
//            "collectionCounts": 0,//收藏数量
//            "getTime": 1543479443024,
//            "isVip": 0, //vip 0不是，1是
//            "vipLevel": 0,
//            "opendId": null,
//            "token": "134770652391543479443054",用户token
//	"vipStartTime": null,//vip开始时间
//            "vipExpiration": null//vip过期时间

    @JSONField(name = "id")
    private long id;
    @JSONField(name = "opendId")
    private String opendId;
    @JSONField(name = "userCode")
    private String userCode;
    @JSONField(name = "userComment")
    private String userComment;
    @JSONField(name = "birthday")
    private Long birthday;
    @JSONField(name = "sex")
    private int sex;
    @JSONField(name = "locality")
    private String locality;
    @JSONField(name = "schoolName")
    private String schoolName;
    @JSONField(name = "status")
    private int status;
    @JSONField(name = "type")
    private int type;
    @JSONField(name = "mobile")
    private String mobile;
    @JSONField(name = "image")
    private String image;
    @JSONField(name = "nickname")
    private String nickName;
    @JSONField(name = "fansCounts")
    private long fansCounts;
    @JSONField(name = "followCounts")
    private long followCounts;
    @JSONField(name = "likeCounts")
    private long likeCounts;
    @JSONField(name = "isVip")
    private boolean isVip;
    @JSONField(name = "vipLevel")
    private int vipLevel;
    @JSONField(name = "token")
    private String token;
    @JSONField(name = "vipExpiration")
    private Long vipExpiration;
    @JSONField(name = "vipStartTime")
    private Long vipStartTime;
    @JSONField(name = "worksCount")
    private int worksCount;
    @JSONField(name = "dynamicCount")
    private int dynamicCount;
    @JSONField(name = "collectionCounts")
    private int collectionCounts;
    @JSONField(name = "likeVideoCount")
    private int likeVideoCount;
    @JSONField(name = "meFollowmTa")
    private boolean meFollowmTa;
    @JSONField(name = "taFollowMe")
    private boolean taFollowMe;
    @JSONField(name = "invitationCode")
    private String invitationCode; //邀请码
    @JSONField(name = "invitationUser")
    private String invitationUser; //邀请人，为空，可以填写邀请码

    private int age;



    public String getOpendId() {
        return opendId;
    }

    public void setOpendId(String opendId) {
        this.opendId = opendId;
    }

    public boolean isMeFollowmTa() {
        return meFollowmTa;
    }

    public void setMeFollowmTa(boolean meFollowmTa) {
        this.meFollowmTa = meFollowmTa;
    }

    public boolean isTaFollowMe() {
        return taFollowMe;
    }

    public void setTaFollowMe(boolean taFollowMe) {
        this.taFollowMe = taFollowMe;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Long getBirthday() {
        return birthday;
    }

    public void setBirthday(Long birthday) {
        this.birthday = birthday;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getLocality() {
        return locality;
    }

    public void setLocality(String locality) {
        this.locality = locality;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public String getNickName() {
        return nickName;
    }

    public long getFansCounts() {
        return fansCounts;
    }

    public long getFollowCounts() {
        return followCounts;
    }

    public long getLikeCounts() {
        return likeCounts;
    }

    public void setVip(boolean vip) {
        isVip = vip;
    }

    public void setVipStartTime(Long vipStartTime) {
        this.vipStartTime = vipStartTime;
    }

    public int getWorksCount() {
        return worksCount;
    }

    public void setWorksCount(int worksCount) {
        this.worksCount = worksCount;
    }

    public int getDynamicCount() {
        return dynamicCount;
    }

    public void setDynamicCount(int dynamicCount) {
        this.dynamicCount = dynamicCount;
    }

    public int getCollectionCounts() {
        return collectionCounts;
    }

    public void setCollectionCounts(int collectionCounts) {
        this.collectionCounts = collectionCounts;
    }


    @Override
    public long getFollowCount() {
        return followCounts;
    }

    @Override
    public long getFansCount() {
        return fansCounts;
    }

    @Override
    public long getLikeCount() {
        return likeCounts;
    }

    @Override
    public int getSex() {
        return sex;
    }

    @Override
    public String getCity() {
        return locality;
    }

    @Override
    public String getSchool() {
        return null;
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public int worksCount() {
        return worksCount;
    }

    @Override
    public int collectCount() {
        return collectionCounts;
    }

    @Override
    public int dynamicCount() {
        return dynamicCount;
    }

    @Override
    public String getUserLogo() {
        return image;
    }

    @Override
    public String getUserName() {
        return nickName;
    }

    @Override
    public String getUserComment() {
        return userComment;
    }

    @Override
    public boolean meFollowTa() {
        return meFollowmTa;
    }

    @Override
    public boolean taFollowMe() {
        return taFollowMe;
    }

    @Override
    public void setMeFollowTa(boolean isFollow) {
        setMeFollowmTa(isFollow);
    }

    @Override
    public long getUserId() {
        return id;
    }

    public Long getVipExpiration() {
        return vipExpiration;
    }

    public void setVipExpiration(Long vipExpiration) {
        this.vipExpiration = vipExpiration;
    }

    public String getToken() {
        return token;
    }

    public Long getVipStartTime() {
        return vipStartTime;
    }

    public boolean isVip() {
        return isVip;
    }

    public void setIsVip(boolean isVip) {
        this.isVip = isVip;
    }

    public void setFollowCounts(long followCounts) {
        this.followCounts = followCounts;
    }

    public void setLikeCounts(long likeCounts) {
        this.likeCounts = likeCounts;
    }

    public void setFansCounts(long fansCounts) {
        this.fansCounts = fansCounts;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setUserComment(String userComment) {
        this.userComment = userComment;
    }

    @Override
    public int viewType() {
        return 0;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setVipLevel(int vipLevel) {
        this.vipLevel = vipLevel;
    }

    public int getVipLevel() {
        return vipLevel;
    }

    public int getLikeVideoCount() {
        return likeVideoCount;
    }

    public void setLikeVideoCount(int likeVideoCount) {
        this.likeVideoCount = likeVideoCount;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getInvitationUser() {
        return invitationUser;
    }

    public void setInvitationUser(String invitationUser) {
        this.invitationUser = invitationUser;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
